#ifndef PLIST_H
#define PLIST_H

#include <glib-object.h>
#include <libmpd/libmpd.h>

#define TYPE_PLIST (plist_get_type())
#define PLIST(obj) (G_TYPE_CHECK_INSTANCE_CAST(obj, TYPE_PLIST, PList))

typedef enum{
	PLIST_COLUMN_TITLE,
	PLIST_COLUMN_LENGTH,
	PLIST_COLUMN_WEIGHT,
	PLIST_COLUMN_SONG_ID,
	PLIST_COLUMN_MAX,
}PListColumns;

typedef struct {
	GObject parent;
	MpdObj *mpd;
}PList;

typedef struct {
	GObjectClass parent;
}PListClass;

GType plist_get_type();
PList* plist_new(MpdObj *mpd);
int plist_get_song_id(PList*, GtkTreeIter* iter);

#endif //PLIST_H
